package com.yk.anima.api;

import com.yk.anima.pojo.ProductsHheep;
import com.yk.anima.response.QueryResponseResult;
import com.yk.anima.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import java.util.List;

/**
 * @author xiaokai
 * @create 2021-05-13 09:48:32
 * @desc...对羊进行管理
 */

@Api(value = "管理羊",description = "对羊进行管理")
public interface ProductsHheepApi {

    @ApiOperation("查询所有")
    public List<ProductsHheep> findAll();

    @ApiOperation("根据Id查询")
    public ProductsHheep findById(int id);

    @ApiOperation("添加数据")
    public ResponseResult save(ProductsHheep productsHheep);

    @ApiOperation("修改数据")
    public ResponseResult update(@ApiParam("当前宠物ID")int id, @ApiParam("用户修改后的数据") ProductsHheep productsHheep);

    @ApiOperation("删除数据")
    public ResponseResult deneteById(int id);

    @ApiOperation("分页查询")
    public QueryResponseResult findByPage( int page,int size, String name);

}
